<%@ Page Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true"
    CodeFile="state-tax-add.aspx.cs" Inherits="admin_state_tax_add" Title="Untitled Page" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<%@ Register Src="~/controls/wucAdminValidator.ascx" TagName="AdminValidator" TagPrefix="wuc" %>
<asp:Content ID="cntMiddleContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <div class="admin-function-top">
        <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
            DisplayMode="BulletList" ShowMessageBox="true" HeaderText="Please correct the following:"
            CssClass="adminValidator" Width="250px" />
        <label>
            State Name
        </label>
        <ucc:StateDropDownList ID="uccState" runat="server" UseFirstItem="true" Style="width: 155px;
            background-color: rgb(255, 255, 160);" FirstItemText="None / Other" FirstItemValue="NA">
        </ucc:StateDropDownList>
        <asp:RequiredFieldValidator ID="rfvState" runat="server" ControlToValidate="uccState"
            ErrorMessage="State is required" InitialValue="NA" Display="dynamic" SetFocusOnError="true"
            EnableClientScript="true" Width="1px">
            <wuc:AdminValidator ID="Validator21" runat="server" />
        </asp:RequiredFieldValidator>
        <br />
        <label>
            Tax(%)</label>
        <asp:TextBox ID="tbxTax" runat="server" CssClass="text" Width="52px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvTax" runat="server" ControlToValidate="tbxTax"
            ErrorMessage="Tax is required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true"
            Width="1px">
            <wuc:AdminValidator ID="AdminValidator1" runat="server" />
        </asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator runat="server" ID="revTax" ControlToValidate="tbxTax"
            EnableClientScript="true" ErrorMessage="Incorrect Tax Format" SetFocusOnError="true"
            ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
            <wuc:AdminValidator ID="Validator28" runat="server" />
        </asp:RegularExpressionValidator>
        <br />
        <label>
            Active</label>
        <asp:CheckBox ID="cbxIsActive" runat="server" />
        <div class="btn-place-holder">
            <asp:Button ID="imgSaveBottom" runat="server" CssClass="btn-regular" AlternateText=" "
                Text="Save" OnClick="Create_Click" />
        </div>
        <br class="clear" />
    </div>
    <br class="clear" />
</asp:Content>
